﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RoleMain.aspx.cs" Inherits="CMS_Role_RoleMain" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>权限选择</title>
    <style>
        /*- Menu Tabs--------------------------- */.tabs
        {
            float: left;
            width: 300px;
            background-color: #BBD9EE;
            font-size: 93%;
            line-height: normal;
        }
        .tabs ul
        {
            margin: 0;
            padding: 10px 10px 0 0px;
            list-style: none;
        }
        .tabs li
        {
            display: inline;
            margin: 0;
            padding: 0;
        }
        .ChileUnHover
        {
            float: left;
            background: url("../../Image/MenuTree/tableft.gif") no-repeat left top;
            margin: 0;
            padding: 0 0 0 4px;
            text-decoration: none;
            cursor: hand;
        }
        .ChileUnHover span
        {
            float: left;
            display: block;
            background: url("../../Image/MenuTree/tabright.gif") no-repeat right top;
            padding: 5px 15px 4px 6px;
            color: #FFF;
        }
        /* Commented Backslash Hack hides rule from IE5-Mac \*/.ChileUnHover span
        {
            float: none;
        }
        /* End IE5-Mac hack */.ChileOnHover span
        {
        }
        .ChileOnHover
        {
            float: left;
            background: url("../../Image/MenuTree/tableft.gif") no-repeat left top;
            margin: 0;
            padding: 0 0 0 4px;
            text-decoration: none;
            background-position: 0% -42px;
            cursor: hand;
        }
        .ChileOnHover span
        {
            float: left;
            display: block;
            background: url("../../Image/MenuTree/tabright.gif") no-repeat right top;
            padding: 5px 15px 4px 6px;
            background-position: 100% -42px;
        }
        /* End IE5-Mac hack */.ChileUnHover:Hover span
        {
        }
        .ChileUnHover:Hover
        {
            float: left;
            background: url("../../Image/MenuTree/tableft.gif") no-repeat left top;
            margin: 0;
            padding: 0 0 0 4px;
            text-decoration: none;
            background-position: 0% -42px;
            cursor: hand;
        }
        .ChileUnHover:Hover span
        {
            float: left;
            display: block;
            background: url("../../Image/MenuTree/tabright.gif") no-repeat right top;
            padding: 5px 15px 4px 6px;
            background-position: 100% -42px;
        }
    </style>
    
    <script>
    
        document.oncontextmenu = new Function("event.returnValue=false;"); //禁止右键功能,单击右键将无任何反应
    
        function GetDptRole() {
          document.getElementById("hidDpt").value = document.frames["MainContent"].GetId();
        }


        function GetRoleRole() {
            document.getElementById("hidRole").value = document.frames["MainContent"].GetId();
        }
        function AddUser(vv) {
            //GetUserList
          
            window.opener.GetUserList(vv);
            window.close();
            
            //opener.document.all.txtUserList.value = document.getElementById("hide").value;

        }


        function AddUserEdit(vv) {
            //GetUserList

            window.opener.GetUserListEdit(vv);
            window.close();

            //opener.document.all.txtUserList.value = document.getElementById("hide").value;

        }

    </script>
</head>
<body style="margin:0px; font-size:13px;">
    <form id="form1" runat="server">
   
    <table style="height: 600px">
        <tr>
            <td valign="top" style="width: 300px">
                <div class="tabs" runat="server" id="TabsFunction">
                    <ul>  <li id="list" runat="server">
                            <asp:LinkButton ID="roleemp" runat="server" CssClass="ChileUnHover" OnClick="roleemp_Click"><span>角色</span></asp:LinkButton>
                        </li>
                        <li id="adjust" runat="server">
                            <asp:LinkButton ID="dptemp" runat="server" CssClass="ChileUnHover" OnClick="dptemp_Click"><span>部门与员工</span></asp:LinkButton>
                        </li>
                      
                    </ul>
                </div>
                <iframe height="560px" runat="server" id="MainContent"></iframe>
            </td>
            <td style="width: 60px">
            <asp:Button ID="USASAll" runat="server" Text="Hyperion>>" Width="70px" onclick="USASAll_Click" 
                    /> <br />
                <br />
                <asp:Button ID="btnAddDpt" runat="server" Text=">>" Width="70px" 
                    onclick="btnAddDpt_Click"/>
                <asp:Button ID="btnAddRole" runat="server" Text=">>" Width="70px" 
                    onclick="btnAddRole_Click"/>
                <br />
                <br />
                <asp:Button ID="btnClear" runat="server" Text="<<" Width="70px" OnClick="btnClear_Click" /><br />
                <br />
                <br />
                <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="保存" Width="70px"/>
            </td>
            <td>
                <asp:ListBox ID="lbEmps" runat="server" Height="600px" Width="250px" 
                    SelectionMode="Multiple"></asp:ListBox>
            </td>
        </tr>
    </table>
    

    <asp:HiddenField ID="hidDpt" runat="server" />
    <asp:HiddenField ID="hidRole" runat="server" />
    </form>
</body>
</html>
